import Cookie from 'js-cookie';

const key: string = 'token';

export const getToken = (): string => {
  return Cookie.get(key);
};

export const setToken = (token: string): void => {
  Cookie.set(key, token);
};

export const removeToken = (): void => {
  Cookie.remove(key);
};
